package com.lalameow.serverlogingate.enetiy;

import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * 创建人: 陈刚
 * 日期: 2018/5/8
 * 时间: 6:26
 * 功能：请进行修改
 */
@Entity
@Table(name = "logingate_playerinfo")
@Data
public class PlayerInfo {
    @Id
    @GeneratedValue(generator = "hibernate-uuid")
    @GenericGenerator(name = "hibernate-uuid", strategy = "uuid")
    private String id;
    //游戏名称
    private String playerName;
    //用户名
    private String userName;
    //密码
    private String password;
    private String qq;
    //推荐人
    private String tuijianren;
    //邀请码
    private String code;
    private long timespan;
    private Date registDate=new Date();
    //MAC地址
    private String mac;
    //机器码
    private String machineCode;
    //是否锁定
    private boolean locked=false;
    //是否发送奖励
    private boolean hasSend=false;
    //是否管理员
    private boolean hasAdmin=false;
    //是否越过反作弊
    private boolean passCheat=false;
    private Date lastLoginTime;
    private String lastLoginIp;
}
